﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001163 RID: 4451
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SetGroupCustomSaveDataScRsp : IMessage<SetGroupCustomSaveDataScRsp>, IMessage, IEquatable<SetGroupCustomSaveDataScRsp>, IDeepCloneable<SetGroupCustomSaveDataScRsp>, IBufferMessage
	{
		// Token: 0x17003854 RID: 14420
		// (get) Token: 0x0600C734 RID: 50996 RVA: 0x002196F9 File Offset: 0x002178F9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SetGroupCustomSaveDataScRsp> Parser
		{
			get
			{
				return SetGroupCustomSaveDataScRsp._parser;
			}
		}

		// Token: 0x17003855 RID: 14421
		// (get) Token: 0x0600C735 RID: 50997 RVA: 0x00219700 File Offset: 0x00217900
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SetGroupCustomSaveDataScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003856 RID: 14422
		// (get) Token: 0x0600C736 RID: 50998 RVA: 0x00219712 File Offset: 0x00217912
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SetGroupCustomSaveDataScRsp.Descriptor;
			}
		}

		// Token: 0x0600C737 RID: 50999 RVA: 0x00219719 File Offset: 0x00217919
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetGroupCustomSaveDataScRsp()
		{
		}

		// Token: 0x0600C738 RID: 51000 RVA: 0x00219721 File Offset: 0x00217921
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetGroupCustomSaveDataScRsp(SetGroupCustomSaveDataScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.groupId_ = other.groupId_;
			this.entryId_ = other.entryId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600C739 RID: 51001 RVA: 0x0021975E File Offset: 0x0021795E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetGroupCustomSaveDataScRsp Clone()
		{
			return new SetGroupCustomSaveDataScRsp(this);
		}

		// Token: 0x17003857 RID: 14423
		// (get) Token: 0x0600C73A RID: 51002 RVA: 0x00219766 File Offset: 0x00217966
		// (set) Token: 0x0600C73B RID: 51003 RVA: 0x0021976E File Offset: 0x0021796E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17003858 RID: 14424
		// (get) Token: 0x0600C73C RID: 51004 RVA: 0x00219777 File Offset: 0x00217977
		// (set) Token: 0x0600C73D RID: 51005 RVA: 0x0021977F File Offset: 0x0021797F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint GroupId
		{
			get
			{
				return this.groupId_;
			}
			set
			{
				this.groupId_ = value;
			}
		}

		// Token: 0x17003859 RID: 14425
		// (get) Token: 0x0600C73E RID: 51006 RVA: 0x00219788 File Offset: 0x00217988
		// (set) Token: 0x0600C73F RID: 51007 RVA: 0x00219790 File Offset: 0x00217990
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint EntryId
		{
			get
			{
				return this.entryId_;
			}
			set
			{
				this.entryId_ = value;
			}
		}

		// Token: 0x0600C740 RID: 51008 RVA: 0x00219799 File Offset: 0x00217999
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SetGroupCustomSaveDataScRsp);
		}

		// Token: 0x0600C741 RID: 51009 RVA: 0x002197A8 File Offset: 0x002179A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SetGroupCustomSaveDataScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && this.GroupId == other.GroupId && this.EntryId == other.EntryId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600C742 RID: 51010 RVA: 0x00219804 File Offset: 0x00217A04
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.GroupId != 0U)
			{
				num ^= this.GroupId.GetHashCode();
			}
			if (this.EntryId != 0U)
			{
				num ^= this.EntryId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600C743 RID: 51011 RVA: 0x00219875 File Offset: 0x00217A75
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600C744 RID: 51012 RVA: 0x0021987D File Offset: 0x00217A7D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600C745 RID: 51013 RVA: 0x00219888 File Offset: 0x00217A88
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.Retcode);
			}
			if (this.GroupId != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.GroupId);
			}
			if (this.EntryId != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.EntryId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600C746 RID: 51014 RVA: 0x00219900 File Offset: 0x00217B00
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.GroupId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.GroupId);
			}
			if (this.EntryId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.EntryId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600C747 RID: 51015 RVA: 0x00219970 File Offset: 0x00217B70
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SetGroupCustomSaveDataScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.GroupId != 0U)
			{
				this.GroupId = other.GroupId;
			}
			if (other.EntryId != 0U)
			{
				this.EntryId = other.EntryId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600C748 RID: 51016 RVA: 0x002199D4 File Offset: 0x00217BD4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600C749 RID: 51017 RVA: 0x002199E0 File Offset: 0x00217BE0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 32U)
				{
					if (num != 40U)
					{
						if (num != 48U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.EntryId = input.ReadUInt32();
						}
					}
					else
					{
						this.GroupId = input.ReadUInt32();
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04005017 RID: 20503
		private static readonly MessageParser<SetGroupCustomSaveDataScRsp> _parser = new MessageParser<SetGroupCustomSaveDataScRsp>(() => new SetGroupCustomSaveDataScRsp());

		// Token: 0x04005018 RID: 20504
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005019 RID: 20505
		public const int RetcodeFieldNumber = 4;

		// Token: 0x0400501A RID: 20506
		private uint retcode_;

		// Token: 0x0400501B RID: 20507
		public const int GroupIdFieldNumber = 5;

		// Token: 0x0400501C RID: 20508
		private uint groupId_;

		// Token: 0x0400501D RID: 20509
		public const int EntryIdFieldNumber = 6;

		// Token: 0x0400501E RID: 20510
		private uint entryId_;
	}
}
